package cn.csc.module.member.enums;

import cn.csc.framework.common.exception.ErrorCode;

/**
 * Member 错误码枚举类
 *
 * member 系统，使用 1-004-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 用户相关  1-004-001-000 ============
    ErrorCode USER_NOT_EXISTS = new ErrorCode(1_004_001_000, "用户不存在");
    ErrorCode USER_MOBILE_NOT_EXISTS = new ErrorCode(1_004_001_001, "手机号未注册用户");
    ErrorCode USER_MOBILE_USED = new ErrorCode(1_004_001_002, "修改手机失败，该手机号({})已经被使用");
    ErrorCode USER_POINT_NOT_ENOUGH = new ErrorCode(1_004_001_003, "用户积分余额不足");
    ErrorCode USER_PASSWORD_FAILED = new ErrorCode(1_004_001_004, "用户密码校验失败");
    ErrorCode USER_UPDATE_USERID_FAILED = new ErrorCode(1_004_001_005, "用户修改userId失败");


    // ========== AUTH 模块 1004003000 ==========
    ErrorCode AUTH_LOGIN_BAD_CREDENTIALS = new ErrorCode(1_004_003_000, "登录失败，账号密码不正确");
    ErrorCode AUTH_LOGIN_USER_DISABLED = new ErrorCode(1_004_003_001, "登录失败，账号被禁用");
    ErrorCode AUTH_THIRD_LOGIN_NOT_BIND = new ErrorCode(1_004_003_005, "未绑定账号，需要进行绑定");
    ErrorCode AUTH_MOBILE_USED = new ErrorCode(1_004_003_007, "手机号已经被使用");

    // ========== 用户收件地址 1004004000 ==========
    ErrorCode ADDRESS_NOT_EXISTS = new ErrorCode(1004004000, "用户收件地址不存在");


    ErrorCode AREA_NOT_EXISTS = new ErrorCode(1004005000, "地区信息不存在");

    // 商品浏览记录
    ErrorCode PRODUCT_BROWSING_HISTORY_NOT_EXISTS = new ErrorCode(1004006000, "商品浏览记录不存在");

    // 角色
    ErrorCode ROLE_NOT_EXISTS = new ErrorCode(1004007000, "会员角色不存在");
    ErrorCode ROLE_CODE_NOT_EXISTS = new ErrorCode(1004007001, "角色权限字符串不存在");


    ErrorCode USER_ROLE_NOT_EXISTS = new ErrorCode(1004008000, "会员和角色关联不存在");


    ErrorCode MENU_NOT_EXISTS = new ErrorCode(1004009000, "菜单权限不存在");


    ErrorCode ROLE_MENU_NOT_EXISTS = new ErrorCode(1004010000, "角色和菜单关联不存在");


}
